Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 31, 2026

Adds GitHub Actions workflows to automatically validate code changes through testing. Tests use testcontainers with pgvector and require sqlc code generation.

Workflows Added

  • test.yml - Validates pull requests to main and develop
  • push.yml - Validates pushes to main and develop

Pipeline Steps

Both workflows execute:

  • Install sqlc and generate type-safe database code (sqlc generate --no-remote)
  • Download Go dependencies with caching
  • Verify application builds
  • Run full test suite with testcontainers (PostgreSQL + pgvector)

Environment variables for tests are provided as workflow configuration:

env:
  SERVICE_DEBUG: true
  SERVICE_DBHOST: localhost
  SERVICE_DBPORT: 5432
  SERVICE_DBUSER: postgres
  SERVICE_DBPASSWORD: postgres
  SERVICE_DBNAME: postgres
  SERVICE_ADMINKEY: TestAdminKey123

Workflows support manual triggering via workflow_dispatch.

Original prompt

There are many testing functions and stubs available in the repo. Examine them and add CI/CD actions to run tests wherever you think this might be useful (validating pull requests, perhaps before accepting pushes etc.). Keep in mind that sqlc must eventually be run and that integration tests use testcontainers and require a pgvector container. They may also need dummy env values?


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits January 31, 2026 17:05
Co-authored-by: awagner-mainz <2088443+awagner-mainz@users.noreply.github.com>
Co-authored-by: awagner-mainz <2088443+awagner-mainz@users.noreply.github.com>
Co-authored-by: awagner-mainz <2088443+awagner-mainz@users.noreply.github.com>
Copilot AI changed the title [WIP] Add CI/CD actions to run tests with sqlc and testcontainers Add CI/CD workflows for automated testing Jan 31, 2026
Copilot AI requested a review from awagner-mainz January 31, 2026 17:08
Copy link
Contributor

@awagner-mainz awagner-mainz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. We'll see how it works.

@awagner-mainz awagner-mainz marked this pull request as ready for review January 31, 2026 17:12
@awagner-mainz awagner-mainz merged commit 027b33e into main Jan 31, 2026
1 check failed
@awagner-mainz awagner-mainz deleted the copilot/add-ci-cd-actions-for-tests branch January 31, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants